/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-19
 * Time:18:31
 */
//同时实现两个接口
public class Dog extends Animal implements IRun,ISwimming{
    public String color;


    @Override
    public void run() {
        System.out.println(this.name + "正在跑");
    }

    @Override
    public void swimming() {
        System.out.println(this.name + "正在游泳");
    }
}
